#include "evolutiontest.h"

bool EvolutionTest::run() {
    short count=0;

    if (!EvolutionTest::constructorTest())
        std::cout << "ERROR " << ++count << " EvolutionTest::constructorTest() faild!" << std::endl;
    if (!EvolutionTest::runTest())
        std::cout << "ERROR " << ++count << " EvolutionTest::runTest() faild!" << std::endl;

    return count==0;
}

bool EvolutionTest::constructorTest() {
    unsigned int eleven=11;
    Input input;
    input.createPrimeInput(19);
    Evolution evolution(input, eleven, eleven, eleven);
    return true;
}

bool EvolutionTest::runTest() {
    unsigned int eleven=11;
    unsigned int three=3;
    unsigned int bigNumber=1000;
    Input input;
    input.createPrimeInput(5);
    Evolution evolution(input, three, three, eleven);
    evolution.run(bigNumber,false);
    return true;
}
